package coms.ejb;

import coms.dataaccess.dao.EventDAO;
import coms.dataaccess.hibernate.HibernateDAOFactory;
import coms.dto.Event;
import javax.annotation.PostConstruct;
import javax.ejb.Stateless;


@Stateless (mappedName="EventBean")
public class EventBean extends GenericBean<Event> implements EventBeanRemote{
    
  private EventDAO eventDAO;
    
    @PostConstruct
    public void construct(){
        super.construct();
        HibernateDAOFactory factory = new HibernateDAOFactory();
        eventDAO = factory.getEventDAO();
    }
    
    
}
